package main

import (
	"fmt"
	"log"
)

func (cli *CLI)startNode(nodeID string,minerAddress string)  {
	fmt.Printf("开启一个节点%s\n",nodeID)
	if len(minerAddress) > 0{
		if ValidateAddress(minerAddress) {
			fmt.Printf("正在挖矿地址是这个：%s",minerAddress)
		}else {
			log.Panic("错误的挖矿地址")
		}
	}
	StartServer(nodeID,minerAddress)		//开启服务器
}
